package com.firefly.admin.common.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

@ApiModel(value = "BaseEntity", description = "基础属性")
@Data
@ToString
@EqualsAndHashCode
public class BaseEntity {

    @ApiModelProperty(value = "创建人ID")
    @TableField(fill = FieldFill.INSERT)
    private Long createUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "操作人ID")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long operateId;

    @ApiModelProperty(value = "操作时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date operateTime;

    @ApiModelProperty(value = "删除标识 1：正常 0：删除")
    private Integer deleteFlag = 1;
}
